Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- funcao2grau(Float:a, Float:b, Float:c, &Float:res1, &Float:res2) {
- new Float:newfloat;
- newfloat = b*b - 4*a*c;
- res1 = (-b+floatsqroot(newfloat))/(2*a);
- res2 = -(b+floatsqroot(newfloat))/(2*a);
- return 1;
- }
- public OnGameModeInit()
- {
- new Float:r[2];
- funcao2grau(3.0,1.0,-14.0,r[0],r[1]);
- printf("\n\nR : %f, %f\n",r[0],r[1]);
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement