Skripta koju koristim: CLRP
Detaljan opis problema: Dodao sam kao da se mogu portat na jedan event /gotobox i kada compile mod onda mi dodu 4 warninga
Dio skripte: C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(52923) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(52923) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(52923) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(52923) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 15020 bytes
Code size: 4286224 bytes
Data size: 3139968 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4487 cells (17948 bytes)
Total requirements: 7457596 bytes
4 Warnings.
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Neslaže ti se broj argumenata u nekoj definiciji , znaÄi da imaÅ¡ neÄega previÅ¡e ili premalo u kodu , ako neznaÅ¡ rijeÅ¡iti postavi ovdje kod.
if(strcmp(cmd, "/gotobox", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1189.2260742188,-883.84887695313,42.76);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 987, 1139.4000244141, -2673.8000488281, 0, 0, 0, 180);
}
SendClientMessage(playerid, COLOR_GRAD1, " Teleportovani ste !");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVirWorld] = 0;
AdminDuty[playerid] = 1;
SetPlayerArmour(playerid, 999);
SetPlayerHealth(playerid, 999);
SetPlayerColor(playerid, SVETLOPLAVA);
GetPlayerName(playerid, sendername, sizeof(sendername));
ABroadCast(COLOR_YELLOW,string,1);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite tu komandu !");
}
}
return 1;
}
Problem ti u je SetPlayerPos previše argumenata , ovako ti idu parametri - playerid,x,y,z
Ako bude joÅ¡ warninga oznaÄi linije koje su na kodu jel ovako nevidim baÅ¡.
Kao sto je neko iznad rekao broj argumenata od SetPlayerPos funkcije ne odgovara nativnome sa 4 argumenta.
Pogledaj malo vamo : http://wiki.sa-mp.com/wiki/SetPlayerPos