28.02.2010, 20:18
How do i go by make a command give a car so i do /sultan gives me a sultan or /nrg gives me a nrg-500
Manythanks.
Manythanks.
if(!strcmp(cmdtext, "/rally1", true)) { Createvehicle,id 560; return 1;
Originally Posted by 02manchestera
so it will be something like
Код:
if(!strcmp(cmdtext, "/rally1", true)) { Createvehicle,id 560; return 1; |
if(!strcmp(cmdtext, "/rally1", true))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
CreateVehicle(560, X,Y,Z,0.0,1,1,respawntime(miliseconds));
return 1;
}
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\mad-dog.pwn(38) : error 017: undefined symbol "respawntime" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Originally Posted by 02manchestera
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\mad-dog.pwn(38) : error 017: undefined symbol "respawntime" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
if(!strcmp(cmdtext, "/sultan", true)) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateVehicle(560, X,Y,Z,0.0,1,1,respawntime(60000)); return 1; }