/szolg parancs lenne, rangonként más skinnel és fegyverekkel, azonban:
C:\\Documents and Settings\\Dani\\Asztal\\Saját RPG Szerver\\gamemodes\\gamemode.pwn(981) : error 001: expected token: \")\", but found \"-identifier-\"
C:\\Documents and Settings\\Dani\\Asztal\\Saját RPG Szerver\\gamemodes\\gamemode.pwn(981) : warning 215: expression has no effect
C:\\Documents and Settings\\Dani\\Asztal\\Saját RPG Szerver\\gamemodes\\gamemode.pwn(981) : error 001: expected token: \";\", but found \"]\"
C:\\Documents and Settings\\Dani\\Asztal\\Saját RPG Szerver\\gamemodes\\gamemode.pwn(981) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Dani\\Asztal\\Saját RPG Szerver\\gamemodes\\gamemode.pwn(981) : fatal error 107: too many error messages on one line
Itt a kód:
CMD:szolg(playerid, params[])
{
if(IsPlayerConnected(playerid) && Belepve[playerid] == 1)
{
if(IsPlayerAdmin(playerid) || JatekosInfo[playerid][Rang] >= 1)
{
cmd_me(playerid, \"szolgálatba lépett\");
if(JatekosInfo[playerid]Rang] == 1)
{
SetPlayerSkin(playerid, 300);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 2)
{
SetPlayerSkin(playerid, 267);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 3)
{
SetPlayerSkin(playerid, 267);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 4)
{
SetPlayerSkin(playerid, 267);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 5)
{
SetPlayerSkin(playerid, 266);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 6)
{
SetPlayerSkin(playerid, 266);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 7)
{
SetPlayerSkin(playerid, 266);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] ==
{
SetPlayerSkin(playerid, 266);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 9)
{
SetPlayerSkin(playerid, 265);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 10)
{
SetPlayerSkin(playerid, 281);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 11)
{
SetPlayerSkin(playerid, 282);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 12)
{
SetPlayerSkin(playerid, 288);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 13)
{
SetPlayerSkin(playerid, 288);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
if(JatekosInfo[playerid]Rang] == 14)
{
SetPlayerSkin(playerid, 283);
GivePlayerWeapon(playerid, 3,1);
GivePlayerWeapon(playerid, 24,40);
GivePlayerWeapon(playerid, 41,100);
}
}
else SendClientMessage(playerid, COLOR_ORANGE, \"(( Nem vagy frakciótag! ))\");
}
else SendClientMessage(playerid, COLOR_ORANGE, \"(( Nem vagy bejelentkezve! ))\");
return 1;
}
Dupla hozzászólás automatikusan összefûzve. ( 2015. december 09. - 18:57:02 )
vicces, hogy ezidáig nem szúrta ki senki, de már rájöttem
[Rang] jobban néz ki mint a Rang]
Zártam.