CMD:boost(playerid, params[]){new boostcfg;if(sscanf(params, \"i\", boostcfg)){ SendClientMessage(playerid, COLOR_GRAD1, \"Használat: /boost [on/off/érték]\"); return 1;}if(strcmp(params, \"off\", true)){if(speedboostonoff[playerid] == 1){ speedboostonoff[playerid] = 0; SendClientMessage(playerid, COLOR_WHITE, \"Speedboost kikapcsolva!\");}else if(speedboostonoff[playerid] == 0){ SendClientMessage(playerid, COLOR_RED, \"A speedboost már ki van kapcsolva!\");}}else if(strcmp(params, \"on\", true)){if(speedboostonoff[playerid] == 0){ speedboostonoff[playerid] = 1; SendClientMessage(playerid, COLOR_WHITE, \"Speedboost bekapcsolva!\");}else if(speedboostonoff[playerid] == 1){ SendClientMessage(playerid, COLOR_RED, \"A speedboost már be van kapcsolva!\");}}else if(strcmp(params, \"1\", true)){ speedboostonoff[playerid] = 1; SendClientMessage(playerid, COLOR_WHITE, \"Speedboost értéke 1.0-ra állítva!\");}else if(strcmp(params, \"2\", true)){ speedboostonoff[playerid] = 2; SendClientMessage(playerid, COLOR_WHITE, \"Speedboost értéke 2.0-ra állítva!\");}return 1;}
Errorozik nekem
C:\\Users\\Gebhard\\Downloads\\samp03csvr_win32\\gamemodes\\varosielet.pwn(2345) : error 035: argument type mismatch (argument 1)C:\\Users\\Gebhard\\Downloads\\samp03csvr_win32\\gamemodes\\varosielet.pwn(2357) : error 035: argument type mismatch (argument 1)C:\\Users\\Gebhard\\Downloads\\samp03csvr_win32\\gamemodes\\varosielet.pwn(2369) : error 035: argument type mismatch (argument 1)C:\\Users\\Gebhard\\Downloads\\samp03csvr_win32\\gamemodes\\varosielet.pwn(2374) : error 035: argument type mismatch (argument 1)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.