12.06.2013, 04:39
Well, long story short, i figured this would be helpful for new players. But it's giving off warnings, and saying "Unknown Command" (Yet for some reason it works ingame). Long story short, i really don't see what's wrong and what's causing it to give warnings
Код:
C:\Users\Jay\Desktop\FRP\gamemodes\ECRP.pwn(36041) : warning 202: number of arguments does not match definition C:\Users\Jay\Desktop\FRP\gamemodes\ECRP.pwn(36047) : warning 202: number of arguments does not match definition C:\Users\Jay\Desktop\FRP\gamemodes\ECRP.pwn(36053) : warning 202: number of arguments does not match definition C:\Users\Jay\Desktop\FRP\gamemodes\ECRP.pwn(36059) : warning 202: number of arguments does not match definition C:\Users\Jay\Desktop\FRP\gamemodes\ECRP.pwn(36065) : warning 202: number of arguments does not match definition C:\Users\Jay\Desktop\FRP\gamemodes\ECRP.pwn(36071) : warning 202: number of arguments does not match definition C:\Users\Jay\Desktop\FRP\gamemodes\ECRP.pwn(36077) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Warnings.
Код:
CMD:checkpoints(playerid, params[]) { new checkpoints[7]; if(!sscanf(params, "s[7]", checkpoints)) { if(!strcmp(checkpoints, "1", true)) { SetPlayerCheckpoint(playerid, 2128.0313,-1141.7780,25.0743); SendClientMessage(playerid, COLOR_LIGHTGREEN, "(( Use /KillCheckpoint to remove the checkpoint! ))"); return 1; } if(!strcmp(checkpoints, "2", true)) { SetPlayerCheckpoint(playerid, 2226.4697,-1722.7240,13.5545); SendClientMessage(playerid, COLOR_LIGHTGREEN, "(( Use /KillCheckpoint to remove the checkpoint! ))"); return 1; } if(!strcmp(checkpoints, "3", true)) { SetPlayerCheckpoint(playerid, 2247.3542,-1663.2201,15.4690); SendClientMessage(playerid, COLOR_LIGHTGREEN, "(( Use /KillCheckpoint to remove the checkpoint! ))"); return 1; } if(!strcmp(checkpoints, "4", true)) { SetPlayerCheckpoint(playerid, 1935.0857,-1776.3207,13.3828); SendClientMessage(playerid, COLOR_LIGHTGREEN, "(( Use /KillCheckpoint to remove the checkpoint! ))"); return 1; } if(!strcmp(checkpoints, "5", true)) { SetPlayerCheckpoint(playerid, 1747.8248,-1859.3582,13.4141); SendClientMessage(playerid, COLOR_LIGHTGREEN, "(( Use /KillCheckpoint to remove the checkpoint! ))"); return 1; } if(!strcmp(checkpoints, "6", true)) { SetPlayerCheckpoint(playerid, 1534.3644,-1673.7803,13.3828); SendClientMessage(playerid, COLOR_LIGHTGREEN, "(( Use /KillCheckpoint to remove the checkpoint! ))"); return 1; } if(!strcmp(checkpoints, "7", true)) { SetPlayerCheckpoint(playerid, 1184.9967,-1329.7534,13.5746); SendClientMessage(playerid, COLOR_LIGHTGREEN, "(( Use /KillCheckpoint to remove the checkpoint! ))"); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Checkpoints [Checkpoint ID] (ID's are below)"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "1. Car Dealership - 2. Ganton Gym - 3. Binco"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "4. Gas Station - 5. Unity - 6. LSPD - 7. Hospital"); } return 1; }