Jump to content

Problema Script


Aliona Fratescu
 Share

Recommended Posts

Salut am un gamemode bugged si am o problema la cmd:gmx

D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : error 037: invalid string (possibly non-terminated string)

D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : error 029: invalid expression, assumed zero
D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : error 029: invalid expression, assumed zero
D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : fatal error 107: too many error messages on one line
 
Script-ul e asta. ma poate ajuta cnv ?
 
CMD:gmx(playerid, params[])
{
  if(playerVariables[playerid"[pmakeadmin] >= 5)                    <-----------------------------------------[ Asta e linia 38355]
     SendClientMessageToAll(COLOR_YELLOW, "---- SERVER RESTART ----");
     SendClientMessageToAll(COLOR_TEAL, "Serverul este restartat pentru rezolvarea unor buguri sau adaugarea unot chestii noi.");
     SendClientMessageToAll(COLOR_TEAL, "Nu e nevoie sa dati Quit ( /q ), serverul revine in 10 secunde.");
     GameModeExit();
  }
 else return SendClientMessage(playerid, COLOR_YELLOW, "Nu ai levelul necesar pentru a da restart.");
 return 1;
}
 
 
 
Va rog ajutati-ma
 

 


Dau si tw daca e nev

Link to comment
Share on other sites

D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38361) : error 010: invalid function or declaration
D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38362) : error 010: invalid function or declaration
 
 
else return SendClientMessage(playerid, COLOR_YELLOW, "Nu ai levelul necesar pentru a da restart.");
   return 1; 
 
problemele

daca vrei iti dau in sms tw de la mn

Link to comment
Share on other sites

De ce mai folosesti else return, incearca simplu 'else'

 

Sau mai simplu:

iCMD:gmx(playerid, params[])
{
  if(playerVariables[playerid][pAdminLevel] < 4) return SendClientMessage(playerid, culoarea, "mesaj");
   SendClientMessageToAll(COLOR_YELLOW, "---- SERVER RESTART ----");
     SendClientMessageToAll(COLOR_TEAL, "Serverul este restartat pentru rezolvarea unor buguri sau adaugarea unot chestii noi.");
     SendClientMessageToAll(COLOR_TEAL, "Nu e nevoie sa dati Quit ( /q ), serverul revine in 10 secunde.");
     GameModeExit();
 return 1;
}
Edited by L0K3D.
Link to comment
Share on other sites

D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : error 001: expected token: ")", but found "-identifier-"
D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : warning 215: expression has no effect
D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : error 001: expected token: ";", but found "]"
D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : error 029: invalid expression, assumed zero
D:\games install\Bugged RPG (Version 3.3.0)\gamemodes\Buttion.pwn(38355) : fatal error 107: too many error messages on one line
 
 
am corectat CMD
 
Problema
 
 
 
 
 if(playerVariables[playerid]pAdminLevel] < 4) return SendClientMessage(playerid, culoarea, "mesaj");

mai bine hai cu TW sa ma testezi.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.