30.09.2012, 02:03
Someone have a /vslap script ? ( vehicle slap ) , i have this script but when i compile it ..
i got this.
My script =>>>
Код:
C:\Users\Alexunder\Desktop\godfatherNEW.pwn(36761) : warning 202: number of arguments does not match definition C:\Users\Alexunder\Desktop\godfatherNEW.pwn(36761) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
My script =>>>
Код:
//----------------------[VSlap]---------------
if(strcmp(cmd, "/vslap", true) == 0) {
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAdmin] >= 1) {
new id = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid,COLOR_GREEN ,"[HELP]: /vslap [carid]");
return 1;
}
id = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z;
GetVehiclePos(id, x, y, z);
SetVehiclePos(id, x, y, z+5);
format(string, sizeof(string),"[ADMIN] %s has slapped car id %s",GetPlayerName(playerid), id);
return 1;
}
}


