#include <a_samp>#define red 0xff0000AA#define COLOR_GREEN 0x00c721AApublic OnPlayerCommandText(playerid, cmdtext[]) {new cmd[256], idx;cmd = strtok(cmdtext, idx);if(strcmp(cmd, \"/skin\", true) == 0) { new tmp[256], string[128];tmp = strtok(cmdtext, idx);if(!strlen(tmp)) return SendClientMessage(playerid, red, \"HASZNÁLAT: /skin [skin ID]\");new skin = strval(tmp);format(string, sizeof(string), \"Meg változtattad a skined !\", skin);SendClientMessage(playerid, COLOR_GREEN, string);SetPlayerSkin(playerid, skin);return 1;}return 0;}strtok(const string[], &index){new length = strlen(string);while ((index < length) && (string[index] <= \' \')){index++;}new offset = index;new result[20];while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1))){result[index - offset] = string[index];index++;}result[index - offset] = EOS;return result;}
if(skin == 217) return SendClientMessage(playerid,PIROS,\"Ezt a skint nem használhatod!\");
if(strcmp(cmd, \"/skin\", true) == 0){ new tmp[256], string[128];tmp = strtok(cmdtext, idx);if(!strlen(tmp)) return SendClientMessage(playerid, red, \"HASZNÁLAT: /skin [skin ID]\"); if(skin == 217) return SendClientMessage(playerid,PIROS,\"Ezt a skint nem használhatod!\");new skin = strval(tmp);format(string, sizeof(string), \"Meg változtattad a skined !\", skin);SendClientMessage(playerid, COLOR_GREEN, string);SetPlayerSkin(playerid, skin);return 1;}
C:\\Documents and Settings\\Robi\\Asztal\\Új mappa\\new.pwn(14) : error 017: undefined symbol \"skin\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
if(strcmp(cmd, \"/skin\", true) == 0){new tmp[256], string[128];tmp = strtok(cmdtext, idx);if(!strlen(tmp)) return SendClientMessage(playerid, red, \"HASZNÁLAT: /skin [skin ID]\");new skin = strval(tmp); if(skin == 217) return SendClientMessage(playerid,PIROS,\"Ezt a skint nem használhatod!\");format(string, sizeof(string), \"Meg változtattad a skined !\", skin);SendClientMessage(playerid, COLOR_GREEN, string);SetPlayerSkin(playerid, skin);return 1;}