COMMAND:giveweapon(playerid,params[]){ new pid, wid, amt; if(sscanf(params,\"udd\",pid,wid,amt))return SendClientMessage(playerid,0xff0000FF,\"ERROR: Használat / if(wid < 0 || wid >40)return SendClientMessage(playerid,0xff0000FF,\"ERROR: Rossz fegyver ID\"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)) { if(IsPlayerAdmin(playerid)) { GivePlayerWeapon(pid,wid,amt); } else SendClientMessage(playerid,0xff0000FF,\"Nem haszalhatod ezt a parancsot!);} else SendClientMessage(playerid,0xff0000FF,\"Játékos nincsen fent!\"); return 1; }
#include <a_samp>#include <zcmd>#include <sscanf>COMMAND:giveweapon(playerid,paams[]){new pid, wid, amt;if(sscanf(params,\"udd\",pid,wid,amt))return SendClientMessage(playerid,0xff0000FF,\"ERROR: Használat / if(wid < 0 || wid >40)return SendClientMessage(playerid,0xff0000FF,\"ERROR: Rossz fegyver ID\"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)){if(IsPlayerAdmin(playerid)){GivePlayerWeapon(pid,wid,amt);}else SendClientMessage(playerid,0xff0000FF,\"Nem haszalhatod ezt a parancsot!);}else SendClientMessage(playerid,0xff0000FF,\"Játékos nincsen fent!\");return 1;}
C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 017: undefined symbol \"params\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 001: expected token: \"-string end-\", but found \"-identifier-\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 017: undefined symbol \"Rossz\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
COMMAND:giveweapon(playerid,params[]){ new pid, wid, amt; if(sscanf(params,\"udd\",pid,wid,amt))return SendClientMessage(playerid,0xff0000FF,\"ERROR: Használat / if(wid < 0 || wid >40)return SendClientMessage(playerid,0xff0000FF,\"ERROR: Rossz fegyver ID\"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)) { if(IsPlayerAdmin(playerid)) { GivePlayerWeapon(pid,wid,amt); } else SendClientMessage(playerid,0xff0000FF,\"Nem haszalhatod ezt a parancsot!);} else SendClientMessage(playerid,0xff0000FF,\"Játékos nincsen fent!\"); return 1; } Tessék minden fegyvert lehet adni
#include <a_samp>#include <zcmd>#include <sscanf>COMMAND:giveweapon(playerid,params[]){new pid, wid, amt;if(sscanf(params,\"udd\",pid,wid,amt))return SendClientMessage(playerid,0xff0000FF,\"ERROR: Használat / if(wid < 0 || wid >40)return SendClientMessage(playerid,0xff0000FF,\"ERROR: Rossz fegyver ID\"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)){if(IsPlayerAdmin(playerid)){GivePlayerWeapon(pid,wid,amt);}else SendClientMessage(playerid,0xff0000FF,\"Nem haszalhatod ezt a parancsot!);}else SendClientMessage(playerid,0xff0000FF,\"Játékos nincsen fent!\");return 1;}
C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 001: expected token: \"-string end-\", but found \"-identifier-\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 017: undefined symbol \"Rossz\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 017: undefined symbol \"fegyver\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 001: expected token: \"-string end-\", but found \"-identifier-\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 017: undefined symbol \"Rossz\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn( : error 017: undefined symbol \"fegyver\"C:\\Users\\Dokumentumokl\\Desktop\\rconteszt1.pwn( : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
#include <a_samp>#include <zcmd>#include <sscanf>COMMAND:giveweapon(playerid,params[]){new pid, wid, amt;if(sscanf(params,\"udd\",pid,wid,amt))return SendClientMessage(playerid,0xff0000FF,\"ERROR: Használat /givegun [Név/ID] [Fegyver ID] [Lõszer]\");if(wid < 0 || wid >40)return SendClientMessage(playerid,0xff0000FF,\"ERROR: Rossz fegyver ID\");if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)){if(IsPlayerAdmin(playerid)){GivePlayerWeapon(pid,wid,amt);}else SendClientMessage(playerid,0xff0000FF,\"Nem haszalhatod ezt a parancsot!);}else SendClientMessage(playerid,0xff0000FF,\"Játékos nincsen fent!\");return 1;}
#include <a_samp>#include <zcmd>#include <sscanf>COMMAND:giveweapon(playerid,params[]){new pid, wid, amt;if(sscanf(params,\"udd\",pid,wid,amt)) return SendClientMessage(playerid,0xff0000FF,\"ERROR: Használat / if(wid < 0 || wid >40) return SendClientMessage(playerid,0xff0000FF,\"ERROR: Rossz fegyver ID\"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)){if(IsPlayerAdmin(playerid)){GivePlayerWeapon(pid,wid,amt);}else SendClientMessage(playerid,0xff0000FF,\"Nem haszalhatod ezt a parancsot!);}else SendClientMessage(playerid,0xff0000FF,\"Játékos nincsen fent!\");return 1;}
if(sscanf(params,\"udd\",pid,wid,amt)) return SendClientMessage(playerid,0xff0000FF,\"ERROR: Használat / if(wid < 0 || wid >40) return SendClientMessage(playerid,0xff0000FF,\"ERROR: Rossz fegyver ID\");
CMD:giveweapon(playerid,params[]){if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,5,\"Nem vagy RCON ADMIN !\");new target,weaponid,tolteny,str[200];if(sscanf(params,\"ddd\",target,weaponid,tolteny)) return SendClientMessage(playerid,SARGA,\"Használat : /giveweapon [iD] [Fegyverid][Tolteny]\");if(weaponid < 1 || weaponid > 46) return SendClientMessage(playerid,PIROS,\"Csak 1-46 közt lehetnek a fegyverek!\");format(str,sizeof(str),\"Fegyvert adtál neki :%s , Fegyver ID:%d, Töltény:%d\",pName(playerid),weaponid,tolteny);SendClientMessage(playerid,SARGA,str);format(str,sizeof(str),\"Fegyvert kaptál tõle :%s\",pName(playerid));SendClientMessage(target,SARGA,str);GivePlayerWeapon(target,weaponid,tolteny);return 1;}
#include <a_samp>#include <zcmd>#include <sscanf>#define PIROS 0xAA3333AA#define SARGA 0xFFFF00AACMD:giveweapon(playerid,params[]){if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,5,\"Nem vagy RCON ADMIN !\");new target,weaponid,tolteny,str[200];if(sscanf(params,\"ddd\",target,weaponid,tolteny)) return SendClientMessage(playerid,SARGA,\"Használat : /giveweapon [iD] [Fegyverid][Tolteny]\");if(weaponid < 1 || weaponid > 46) return SendClientMessage(playerid,PIROS,\"Csak 1-46 közt lehetnek a fegyverek!\");format(str,sizeof(str),\"Fegyvert adtál neki :%s , Fegyver ID:%d, Töltény:%d\",pName(playerid),weaponid,tolteny);SendClientMessage(playerid,SARGA,str);format(str,sizeof(str),\"Fegyvert kaptál tõle :%s\",pName(playerid));SendClientMessage(target,SARGA,str);GivePlayerWeapon(target,weaponid,tolteny);return 1;}
C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn(12) : error 017: undefined symbol \"pName\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn(14) : error 017: undefined symbol \"pName\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
#include <a_samp>#include <zcmd>#include <sscanf>#define PIROS 0xAA3333AA#define SARGA 0xFFFF00AACMD:giveweapon(playerid,params[]){new pName[MAX_PLAYER_NAME];if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,5,\"Nem vagy RCON ADMIN !\");new target,weaponid,tolteny,str[200];if(sscanf(params,\"ddd\",target,weaponid,tolteny)) return SendClientMessage(playerid,SARGA,\"Használat : /giveweapon [iD] [Fegyverid][Tolteny]\");if(weaponid < 1 || weaponid > 46) return SendClientMessage(playerid,PIROS,\"Csak 1-46 közt lehetnek a fegyverek!\");format(str,sizeof(str),\"Fegyvert adtál neki :%s , Fegyver ID:%d, Töltény:%d\",pName(playerid),weaponid,tolteny);SendClientMessage(playerid,SARGA,str);format(str,sizeof(str),\"Fegyvert kaptál tõle :%s\",pName(playerid));SendClientMessage(target,SARGA,str);GivePlayerWeapon(target,weaponid,tolteny);return 1;}
C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn(13) : error 012: invalid function call, not a valid addressC:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn(13) : warning 215: expression has no effectC:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn(13) : error 001: expected token: \";\", but found \")\"C:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn(13) : error 029: invalid expression, assumed zeroC:\\Users\\Dokumentumok\\Desktop\\rconteszt1.pwn(13) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
#include <a_samp>#include <zcmd>#include <sscanf>#define PIROS 0xAA3333AA#define SARGA 0xFFFF00AACMD:giveweapon(playerid,params[]){if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,5,\"Nem vagy RCON ADMIN !\");new target,weaponid,tolteny,str[200];if(sscanf(params,\"ddd\",target,weaponid,tolteny)) return SendClientMessage(playerid,SARGA,\"Használat : /giveweapon [iD] [Fegyverid][Tolteny]\");if(weaponid < 1 || weaponid > 46) return SendClientMessage(playerid,PIROS,\"Csak 1-46 közt lehetnek a fegyverek!\");format(str,sizeof(str),\"Fegyvert adtál neki :%s , Fegyver ID:%d, Töltény:%d\",pName(playerid),weaponid,tolteny);SendClientMessage(playerid,SARGA,str);format(str,sizeof(str),\"Fegyvert kaptál tõle :%s\",pName(playerid));SendClientMessage(target,SARGA,str);GivePlayerWeapon(target,weaponid,tolteny);return 1;}stock pName( playerid ){new s_szPlayerName[ MAX_PLAYER_NAME ];GetPlayerName( playerid, s_szPlayerName, MAX_PLAYER_NAME );return s_szPlayerName;}