25.07.2013, 15:22
Fixed here:
EDIT: @The guy above me, do you even know what you did? You did nothing, he was missing the string to send at SendClientMessage, and about the error message, it's because he had a missing return 1; what did you post?!
pawn Код:
if(strcmp(cmd, "/rveh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_SYNTAX, "Syntax: /rveh [vehid]");
return 1;
}
new carid;
carid = strval(tmp);
{
format(string, sizeof(string), "Vehicle ID %d was respawned.", carid);
SendClientMessage(playerid, COLOR_WHITE, string); // LINE 14055
SetVehicleToRespawn(carid);
}
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "NOTADMIN");
}
}
return 1;
}
EDIT: @The guy above me, do you even know what you did? You did nothing, he was missing the string to send at SendClientMessage, and about the error message, it's because he had a missing return 1; what did you post?!