18.01.2012, 15:38
CMD:createcar(playerid, params[])
{
new veh,color1,color2;
if (!sscanf(params, "iii", veh, color1,color2))
{
new Float, 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.
{
new veh,color1,color2;
if (!sscanf(params, "iii", veh, color1,color2))
{
new Float, 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.