C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(417) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(419) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(421) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(434) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(436) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(451) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(452) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(463) : error 035: argument type mismatch (argument 3)
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COL_WHITE, "[SERVER] ERROR: {FFFFFF}You need to be logged into RCON to do this.");
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid, COL_WHITE, "[SERVER] USAGE: {FFFFFF}/setadmin id level");
if(level > 5) return SendClientMessage(playerid, COL_WHITE, "SERVER] ERROR: {FFFFFF}The level you entered is too high (Max 5)");
if(PlayerInfo[playerid][pAdmin] > 1) return SendClientMessage(playerid, COL_WHITE, "SERVER] ERROR: {FFFFFF}Insufficient privileges");
if(sscanf(params,"us[128]",id,reason)) return SendClientMessage(playerid, COL_WHITE, "[SERVER] USAGE: {FFFFFF}/kick id reason");
if(PlayerInfo[playerid][pAdmin] > 3) return SendClientMessage(playerid, COL_WHITE, "[SERVER] ERROR: {FFFFFF}Insufficient privileges");
if(sscanf(params,"us[128]",id,reason)) return SendClientMessage(playerid, COL_WHITE, "[SERVER] USAGE: {FFFFFF}/ban id reason");
INI_WriteString(File,"Banned",1);
Код:
C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(417) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(419) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(421) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(434) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(436) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(451) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(452) : error 035: argument type mismatch (argument 2) C:\Users\Melktert\Desktop\gtasa_deathmatch\gamemodes\lsdm.pwn(463) : error 035: argument type mismatch (argument 3) PHP код:
PHP код:
PHP код:
PHP код:
PHP код:
PHP код:
PHP код:
PHP код:
|
//SendClientMessage use this type
#define COLOR_WHITE 0xFFFFFFAA
//Dialogs use this type
#define COL_WHITE "{FFFFFF}"
INI_WriteString(File,"Banned",1);
//1 is not a string so you have to do
INI_WriteInt(File,"Banned",1);
first of all as your last problem make sure your defines are right
PHP код:
and PHP код:
|