23.11.2012, 14:44
Код:
CMD:pm(playerid, params[]) { new id, text[124]; new string[124]; new name=GetPlayerName(playerid); if(sscanf(params, "ui[124]", id, text)) return SendClientMessage(playerid, -1, "[USAGE]: /pm [playerid] [text]"); format(string, sizeof(string), "((PM from %s:%s))", name, text); SendClientMessage(-1, string); return 1; }
Код:
E:\San Andreas Multiplayer Server Files (Classified)\Castaway Island Roleplay Server Files\gamemodes\CI-RP.pwn(225) : warning 202: number of arguments does not match definition E:\San Andreas Multiplayer Server Files (Classified)\Castaway Island Roleplay Server Files\gamemodes\CI-RP.pwn(225) : warning 202: number of arguments does not match definition E:\San Andreas Multiplayer Server Files (Classified)\Castaway Island Roleplay Server Files\gamemodes\CI-RP.pwn(229) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.