Buna! Azi m-am gandit sa fac un edit pt un gamemode (nu dau link sa nu fac reclama) si vreau sa fac comanda "/bonus".
Problema este ca imi da multe errori
Aici este ce imi da la compile:
C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2119) : warning 202: number of arguments does not match definition
C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2121) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2121 -- 2122) : warning 215: expression has no effect
C:\Users\zxc\Desktop\~~~~~~~~\gamemodes\fromzero.pwn(2122) : error 001: expected token: ";", but found "}"
Pawn compiler 3.10.6 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Si aici este codul:
//comanda bonus
YCMD:bonus(playerid, params[], help) {
if(PlayerInfo[playerid][pLevel] == 1)
{
GivePlayerCash(playerid, 100000);
PlayerInfo[playerid][pLevel] = 2;
SCM(playerid, COLOR_JADE, "Ai primit 250.000$ si ai crescut cu un nivel pentru ca ai folosit comanda "/bonus"!);
}
return 1;
}
Multumesc