30.03.2012, 16:08
Hello, I have 3 errors with my cmd /nos. I tried writing this from scratch, but obviously something went wrong.
These are my errors, I tried solving these but couldn't do it. I am adding my CMD -
pawn Код:
Dangerous TDM V0.2\gamemodes\ExplosionDMV0.2.pwn(345) : error 033: array must be indexed (variable "carid")
Dangerous TDM V0.2\gamemodes\ExplosionDMV0.2.pwn(346) : error 033: array must be indexed (variable "carid")
Dangerous TDM V0.2\gamemodes\ExplosionDMV0.2.pwn(350) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
pawn Код:
CMD:nos(playerid, params[])
{
new carid[32];
carid = GetPlayerVehicleID(playerid); // LINE 345
if(carid < 0) // LINE 346
{
SendClientMessage(playerid, COL_BRIGHTRED, "ERROR: Sa ei ole autos sees!");
}else{
AddVehicleComponent(carid, 1010); // LINE 350
}
return 1;
}