PDA

View Full Version : My gamemode is ruined somehow


Gogeta
19/01/2015, 02:13 PM
CMD:v(playerid, params[])
{
new vid, pName[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z,string[128];
if(sscanf,(params,"i",vid)) return SendClientMessage(playerid, -1, "Pick a number between 400 and 611");
CreateVehicle(vid,X,Y,Z,1,1,1,10000);
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string)),"Player %s has spawned vehicle ID: %i.",pName,vid);
SendClientMessageToAll(-1,string);
return 1;
}


C:\Users\Diti\Desktop\Server\samp03z_svr_R1_win32\ gamemodes\Server.pwn(133) : error 076: syntax error in the expression, or invalid function call
C:\Users\Diti\Desktop\Server\samp03z_svr_R1_win32\ gamemodes\Server.pwn(136) : warning 202: number of arguments does not match definition
C:\Users\Diti\Desktop\Server\samp03z_svr_R1_win32\ gamemodes\Server.pwn(136) : warning 215: expression has no effect
C:\Users\Diti\Desktop\Server\samp03z_svr_R1_win32\ gamemodes\Server.pwn(136) : warning 215: expression has no effect
C:\Users\Diti\Desktop\Server\samp03z_svr_R1_win32\ gamemodes\Server.pwn(136) : warning 215: expression has no effect
C:\Users\Diti\Desktop\Server\samp03z_svr_R1_win32\ gamemodes\Server.pwn(136) : error 001: expected token: ";", but found ")"
C:\Users\Diti\Desktop\Server\samp03z_svr_R1_win32\ gamemodes\Server.pwn(136) : error 029: invalid expression, assumed zero

Matess
19/01/2015, 02:23 PM
CMD:v(playerid, params[])
{
new vid, pName[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z,string[128];
if(sscanf(params,"i",vid)) return SendClientMessage(playerid, -1, "Pick a number between 400 and 611");//
CreateVehicle(vid,X,Y,Z,1,1,1,10000);
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"Player %s has spawned vehicle ID: %i.",pName,vid);//
SendClientMessageToAll(-1,string);
return 1;
}