13.04.2013, 20:26
PHP код:
CMD:grabweed(playerid, params[])
{
if(PInfo[playerid][Drugs] < 1) return SendClientMessage(playerid, COLOR_BROWN, "You are not an supplier rank 1.");
SendClientMessage(playerid, COLOR_GREY, "You are not at the druglab.");
if(IsPlayerInRangeOfPoint(playerid, 3.0, 302.6837,300.7080,999.1484,4.5756))
{
PInfo[playerid] +=20;
SendClientMessage(playerid, COLOR_RED, "You cutted a 20gram of weed as you pocket it.");
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: /checkweed for check how many grams you have left.");
return 1;
}
return 1;
}
PHP код:
error 023: array assignment must be simple assignment