16.02.2009, 07:07
I posted this in another topic but I think i can draw more attention to it here as its a scripting issue.
Sorry for bad indentation
can anyone identify any problem?
pawn Код:
if (strcmp("/advertise", cmdtext, true, 10) == 0 || strcmp("/ad",cmdtext, true, 10) == 0)
{
new string[128];
format(string, sizeof(string), "Advertisement - %s: %s",playerid);
SendClientMessageToAll(0xFFFFFFAA, string);
SendClientMessage(playerid,0xFFFFFFAA,"You were charged $1000 for advertising.");
return 1;
}
if (strcmp("/sanews",cmdtext,true,10) == 0)
{
if (GetPlayerSkin(playerid) == 150 || GetPlayerSkin(playerid) == 240 || GetPlayerSkin(playerid) == 59)
if (PlayerToPoint(3.0,playerid,1042.2433,10.1764,1001.2845))
{
new string[128];
format(string, sizeof(string), "San Andreas News - Reporter %s: %s",playerid);
SendClientMessageToAll(0xFFFFFFAA, string);
}
else
{
SendClientMessage(playerid,0xFFFFFFAA,"SERVER: You must be at the correct location to broadcast news, as well as being an official San Andreas News Reporter!");
}
return 1;
}
can anyone identify any problem?