15.02.2015, 14:26
Hey guys... This is my code:
and these are the warnings I get and the code doesn't work :/
Код:
CMD:buyclothes(playerid, params[]) { new string[128]; new clothes; if(!IsPlayerInRangeOfPoint(playerid, 10, 204.3303,-159.8711,1000.5234 || 203.7879,-43.2690,1001.8047 || 206.3741,-8.1265,1001.2109 || 161.5538,-83.7009,1001.8047 || 207.0033,-129.1799,1003.5078)) return SendClientMessage(playerid, COLOR_ORANGE, "{E5AC00}SERVER: {FFFFFF}You are not at the clothes shop!"); if(sscanf(params,"i",clothes)) return SendClientMessage(playerid, COLOR_ORANGE, "{E5AC00}SERVER: {FFFFFF}USAGE: /buyclothes [Skin ID]"); format(string, sizeof(string), "{E5AC00}SERVER:{FFFFFF} You have purchased your clothes.(ID: %d).",clothes); SendClientMessage(playerid,COLOR_ORANGE,string); GivePlayerMoney(playerid, -100); PlayerInfo[playerid][Skin] = clothes; SetPlayerSkin(playerid, clothes); return 1; }
Код:
C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 213: tag mismatch C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Desktop\Fort Carson Roleplay\gamemodes\roleplay.pwn(7905) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Warnings.