Jump to content
  • 0

Problema GameMode!


Question

Posted

C:\Documents and Settings\Ruben\Desktop\Server Samp\Server Samp\gamemodes\SU.pwn(4897) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Ruben\Desktop\server samp\Server Sampv\gamemodes\SU.pwn(4900) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Ruben\Desktop\server samp\Server Samp\gamemodes\SU.pwn(4900) : error 033: array must be indexed (variable "skin")
C:\Documents and Settings\Ruben\Desktop\server samp\Server Samp\gamemodes\SU.pwn(4908) : error 017: undefined symbol "IsInvalidSkin"
C:\Documents and Settings\Ruben\Desktop\Server samp\Server Samp\gamemodes\SU.pwn(4917) : error 017: undefined symbol "string"
C:\Documents and Settings\Ruben\Desktop\S\Server samp\gamemodes\SU.pwn(4918) : error 017: undefined symbol "string"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


Este o comanda de /skin comanda este:
if (strcmp(cmd, "/skin", true) == 0 )
	{
	new skin[256];
	skin = strtok(cmdtext, idx);

    if (!strlen(skin))
    {
    SendClientMessage(playerid, COLOR_BASIC, "Scrie: /skin [id skin]");
    return 1;
		}
    new newskin = strval(skin);
    if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) {
    SendClientMessage(playerid, COLOR_BASIC, "SERVERBOT: Acest Skin nu exista!");
    return 1;
    }

    if (GetPlayerMoney(playerid) >= 0)
    {
    SetPlayerSkin(playerid, newskin);
    GivePlayerMoney(playerid,-0);
    format(string, 128, "Server: Skin schimbat la id-ul %d, pentru 100$, distreaza-te", newskin);
    SendClientMessage(playerid, COLOR_BASIC, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_BASIC, "Nu ai bani iti trebuie 100$");
    }
    return 1;
	}

Leam copilat cu 0.3c,0.3b si 0.3a si am incercat si cu 0.2x :)))))))

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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. For more details you can also review our Terms of Use and Privacy Policy.