- 0
Comanda oplace
-
Similar Content
-
- 3 answers
- 719 views
-
- 4 replies
- 191 views
-
- 1 reply
- 144 views
-
Comanda /spec
By VAurel,
- 4 answers
- 329 views
-
- 4 answers
- 669 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
adv1337
\pawno\include\SW.inc(204) : error 001: expected token: ";", but found "if" EROAREA
COD:
CMD:oplace(playerid, params[], help) {
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!");
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
if(eventobjects > 9) return SCM(playerid, COLOR_WHITE,"You can't place more than 10 objects.");
new objectid,prize,sendername[30],Float:pX,Float:pY,Float:pZ,string[128];
if(sscanf(params, "dd",objectid,prize))
{
SendClientMessage(playerid, COLOR_WHITE,"{AB0000}Usage: {FFFFFF}/oplace <Object (Id object)> <Prize>");
SendClientMessage(playerid, COLOR_WHITE,"[OBJECTS] Cadou: 19054 - 19058 | Glob craciun: 19059 - 19063 | Oua paste: 19341 - 19345");
return 1;
}
if(prize < 1 || prize > 10000000) return SendClientMessage(playerid, COLOR_WHITE, "Prize must be between $1 and $10,000,000.");
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerPos(playerid,pX,pY,pZ);
eventobjects++;
objectevent[eventobjects] = CreatePickup(objectid, 1, pX+2,pY,pZ, -1);
eventprizeobj[eventobjects] = prize;
format(string,sizeof(string),"Admin %s[admin:%d] started an event. Object: %d, prize: $%s.",sendername,PlayerInfo[playerid][pSQLID],objectid,FormatNumber(prize));
ABroadCast(COLOR_RED2, string,1);
Adminlog(string);
return 1;
}
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.