09.06.2011, 20:32
(
Последний раз редактировалось ColdIce; 09.06.2011 в 21:57.
)
Deleted. New topic at the bottom
SendPlayerMessageToAll does not exist, it should be SendClientMessageToAll, also
NOT with playerid. https://sampwiki.blast.hk/wiki/SendClientMessageToAll |
SendPlayerMessageToAll does exist https://sampwiki.blast.hk/wiki/SendPlayerMessageToAll
|
if(strcmp(cmdtext, "/paint", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You must be in a vehicle!");
ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255));
SendClientMessage(playerid, 0x6AF7E1FF,"Hope you like the new colour xD");
return 1;
}
return 0;
}
warning 225: unreachable code
if(strcmp(cmdtext, "/paint", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You must be in a vehicle!");
ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255));
SendClientMessage(playerid, 0x6AF7E1FF,"Hope you like the new colour xD");
return 1;
}