PDA

View Full Version : Scrpt-errors


Ghost252
18/01/2012, 04:38 PM
CMD:createcar(playerid, params[])
{
new veh,color1,color2;
if (!sscanf(params, "iii", veh, color1,color2))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
AddStaticVehicle(veh, x,y,z,0,color1, color2);
}
else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /createcar <carid> <c1> <c2>");
return 1;
}

I tried the code above and I get these errors:

C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : error 017: undefined symbol "cmd_createcar"
C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : fatal error 107: too many error messages on one line

Any help will be appreciated.

CmZxC
18/01/2012, 04:41 PM
Do you have the CMD system included?

Konstantinos
18/01/2012, 04:48 PM
Download [Include] ZCMD by Zeex (http://forum.sa-mp.com/showthread.php?t=91354)

Ghost252
18/01/2012, 08:20 PM
Yay it works now ! I salute you - thanks.