horke1 Posted March 31, 2013 Report Share Posted March 31, 2013 am o problema la skin imi da eror are careva ide va rog if (strcmp(cmd, "/skin", true) == 0 ) { new skin[256]; skin = strtok(cmdtext, idx); if (!strlen(skin)) { SendClientMessage(playerid, COLOR_RED, "Use: /skin [skinid]"); return 1; } new newskin = strval(skin); if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) { SendClientMessage(playerid, COLOR_RED, "Server: This skin does not exist!"); return 1; } if (GetPlayerMoney(playerid) >= 0) { SetPlayerSkin(playerid, newskin); GivePlayerMoney(playerid,-0); format(string, 128, "Server: Skin changed to the id %d, have fun", newskin); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } else { SendClientMessage(playerid, COLOR_RED, "You can not change skin"); } return 1; } eroi asteaD:\server 0.3x\gamemodes\bare.pwn(308) : error 017: undefined symbol "IsInvalidSkin" D:\server 0.3x\gamemodes\bare.pwn(317) : error 017: undefined symbol "string" D:\server 0.3x\gamemodes\bare.pwn(318) : error 017: undefined symbol "string" D:\server 0.3x\gamemodes\bare.pwn(6052) : warning 203: symbol is never used: "iSpawnSet" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors. Link to comment Share on other sites More sharing options...
BuBu Posted March 31, 2013 Report Share Posted March 31, 2013 Ai macar un stock care apeleaza la IsInvalidSkin ? sau l-ai definit macar ? :-j Link to comment Share on other sites More sharing options...
D@rksone Posted March 31, 2013 Report Share Posted March 31, 2013 Ai macar un stock care apeleaza la IsInvalidSkin ? sau l-ai definit macar ? :-jNici nu la definit:D:\server 0.3x\gamemodes\bare.pwn(308) : error 017: undefined symbol "IsInvalidSkin" D:\server 0.3x\gamemodes\bare.pwn(317) : error 017: undefined symbol "string" D:\server 0.3x\gamemodes\bare.pwn(318) : error 017: undefined symbol "string"Definestel horke1 Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte Link to comment Share on other sites More sharing options...
horke1 Posted March 31, 2013 Author Report Share Posted March 31, 2013 pai eu comanda skinam luato dintrun gm si nu are Link to comment Share on other sites More sharing options...
Gireada Posted March 31, 2013 Report Share Posted March 31, 2013 pune asta [pawn]IsValidSkin(skinid){ #define MAX_BAD_SKINS 9 new badSkins[MAX_BAD_SKINS] = { 74, 265, 266, 267, 268, 269, 270, 271, 272 }; if (skinid < 0 || skinid > 299) return false; for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins) return false; } #undef MAX_BAD_SKINS return 1;}[/pawn]la sfarsitul GM-ului. si [pawn]new string[256];[/pawn] la inceputul comenzii Link to comment Share on other sites More sharing options...
Question
horke1
am o problema la skin imi da eror are careva ide va rog
eroi asteaLink to comment
Share on other sites
4 answers to this question
Recommended Posts