04.06.2012, 10:48
Hi guys. I have a common problem that i can't solve, and get 17 warnings. I will post whole CMD and comment the line so you guys can check the problem.
Код:
CMD:setstat(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new string[128], giveplayerid, statcode, amount; if(sscanf(params, "udd", giveplayerid, statcode, amount)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setstat [playerid] [statcode] [amount]"); SendClientMessage(playerid, COLOR_WHITE, "|1 Level |2 Driving License |3 UpgradePoints |4 Cash |5 VIP |6 Model"); SendClientMessage(playerid, COLOR_WHITE, "|7 Experience Points |8 Age |9 Sex"); return 1; } if(IsPlayerConnected(giveplayerid)) { switch (statcode) { case 1: { PlayerInfo[giveplayerid][pLevel] = amount; format(string, sizeof(string), "%s's Level has been set to %d.", GetPlayerName(giveplayerid), amount); // First error here = 2725 SetPlayerScore(giveplayerid, PlayerInfo[giveplayerid][pLevel]); } case 2: { PlayerInfo[giveplayerid][pDriveLic] = amount; format(string, sizeof(string), "%s's Driver license has been set to %d.", GetPlayerName(giveplayerid), amount); // Second error here = 2731 } case 3: { PlayerInfo[giveplayerid][pExp] = amount; format(string, sizeof(string), "%s's Respect Points have been set to %d.", GetPlayerName(giveplayerid), amount); // Third line error = 2736 } case 4: { PlayerInfo[giveplayerid][pCash] = amount; format(string, sizeof(string), "%s's Cash has been set %d.", GetPlayerName(giveplayerid), amount); // So it goes on... } case 5: { PlayerInfo[giveplayerid][pVip] = amount; format(string, sizeof(string), "%s's Account VIP has been set to $%d.", GetPlayerName(giveplayerid), amount); } case 6: { PlayerInfo[giveplayerid][pModel] = amount; format(string, sizeof(string), "%s's Model has been set to %d.", GetPlayerName(giveplayerid), amount); } case 7: { PlayerInfo[giveplayerid][pExp] = amount; format(string, sizeof(string), "%s's Respect Points have been set to %d.", GetPlayerName(giveplayerid), amount); } case 8: { PlayerInfo[giveplayerid][pLevel] = 5; PlayerInfo[giveplayerid][pCash] = 50000; PlayerInfo[giveplayerid][pVip] = 3; format(string, sizeof(string), "You got Refunded.", GetPlayerName(giveplayerid), amount); } default: { format(string, sizeof(string), " Invalid stat code.", amount); return 1; } } } } return 1; }
Код:
C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2725) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2725) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2731) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2731) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2736) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2736) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2741) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2741) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2746) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2746) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2751) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2751) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2756) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2756) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2763) : warning 202: number of arguments does not match definition C:\Users\DennisAlexander\Desktop\Deluxe-Roleplay UNIQUE Script\samp03e_svr_win32\gamemodes\SF-RP.pwn(2763) : warning 202: number of arguments does not match definition