Skripta: CLRP edit
Problem:
Javljaju mi se ovi errori: C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41479) : error 035: argument type mismatch (argument 1)
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41498) : warning 213: tag mismatch
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41498) : warning 202: number of arguments does not match definition
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41519) : error 035: argument type mismatch (argument 1)
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41538) : warning 213: tag mismatch
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41538) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
A skripta je ovakva: if(strcmp(cmd, "/aon", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
//ABroadCast(SVETLOPLAVA, string);
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
playertextid[playerid] = Create3DTextLabel(playerid,"Admin na duznosti! (Ne ometaj!!)",0x33CCFFAA,fa,fy,fu,40.0);
Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "{F81414}(Odbijeno) {C3C3C3}Samo Admini!");
}
return 1;
}
if(strcmp(cmd, "/aoff", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
//ABroadCast(SVETLOPLAVA, string);
Delete3DTextLabel(playerid, playertextid[playerid]);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "{F81414}(Odbijeno) {C3C3C3}Samo Admini!");
}
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{
if (PlayerInfo[playerid][pGameSage] >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
//BroadCast(ZELENKASTA, string);
new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
playertextidgs[playerid] = Create3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!!)",0x9ACD32AA,gfa,gfy,gfu,40.0);
Attach3DTextLabelToPlayer(playertextidgs[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "Nisi GameSage!");
}
return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
if (PlayerInfo[playerid][pGameSage] >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
//BroadCast(ZELENKASTA, string);
Delete3DTextLabel(playerid, playertextidgs[playerid]);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "Nisi GameSage!");
}
return 1;
}
tamo gore imam new Text3D:playertextid[MAX_PLAYERS];
new Text3D:playertextidgs[MAX_PLAYERS];
jel zna tko sta nevalja???
daj zaljepi linije 41479 i 41519
Problem je u ovim linijama :
playertextid[playerid] = Create3DTextLabel(playerid,"Admin na duznosti! (Ne ometaj!!)",0x33CCFFAA,fa,fy,fu,40.0);
Obriši playerid u Create3DTextLabel funkciji
Delete3DTextLabel(playerid, playertextid[playerid]);
Obriši playerid prvi argument.
41479: playertextid[playerid] = Create3DTextLabel("Admin na duznosti! (Ne ometaj!!)",0x33CCFFAA,fa,fy,fu,40.0);
C:\Users\Kruno\Downloads\gamemodes\gamemodes\gamemodes\EGRPBYKRUNSY.pwn(41479) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 14120 bytes
Code size: 4245636 bytes
Data size: 2446336 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4487 cells (17948 bytes)
Total requirements: 6722476 bytes
1 Warning.
ima samo 1 warn sad
Na kraju ti fali argument testLOS (0 - da se label ne vidi kroz zidove , 1 - da se vidi) znaÄi na kraju staviÅ¡ 1 ili 0.
hvala sad radi!