dcmd_rob(playerid,params[]) { if(PlayerVerify == 0) return SendClientMessage(playerid,COLOR_ERROR,"[Error] You must login/register before using commands /login [password] or /register [password]]"); new tmp[256],Index; tmp = strtok(params,Index); if (GetPlayerWantedLevel(playerid) <= 0)) { SendClientMessage(playerid, COLOR_RED, " [Robbery] You just robbed a bank and you are wanted now"); } GivePlayerMoney(playerid, 500 + random(200)); else if (GetPlayerWantedLevel(playerid) >= 1)) { SendClientMessage(playerid, COLOR_RED, " [Robbery] You can't rob a bank, you are wanted"); } return 1; }
C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(379) : error 029: invalid expression, assumed zero C:\Srv\gamemodes\SFFreeroam3.0.pwn(382) : error 029: invalid expression, assumed zero C:\Srv\gamemodes\SFFreeroam3.0.pwn(382) : warning 215: expression has no effect C:\Srv\gamemodes\SFFreeroam3.0.pwn(382) : error 001: expected token: ";", but found "if" C:\Srv\gamemodes\SFFreeroam3.0.pwn(382) : error 029: invalid expression, assumed zero C:\Srv\gamemodes\SFFreeroam3.0.pwn(382) : fatal error 107: too many error messages on one line
dcmd_rob(playerid,params[]) { if(PlayerVerify == 0) return SendClientMessage(playerid,COLOR_ERROR,"[Error] You must login/register before using commands /login [password] or /register [password]]"); new tmp[256],Index; tmp = strtok(params,Index); if (GetPlayerWantedLevel(playerid) <= 0) SendClientMessage(playerid, COLOR_RED, " [Robbery] You just robbed a bank and you are wanted now"); GivePlayerMoney(playerid, 500 + random(200)); else if (GetPlayerWantedLevel(playerid) >= 1) SendClientMessage(playerid, COLOR_RED, " [Robbery] You can't rob a bank, you are wanted"); return 1; }
C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(382) : error 029: invalid expression, assumed zero C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(382) : warning 215: expression has no effect C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(382) : error 001: expected token: ";", but found "if"
Originally Posted by Thrarod
pawn Код:
|
Originally Posted by Thrarod
Worked and worked, the things you wrote useless makes dcmd dont give errors for params
|