[Pomoc] Errori

Započeo ♥ BMW ♥, Decembar 14, 2012, 00:53:54 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: Igram se malo sa Dilimore RP
Detaljan opis problema: Kada pravim ulaz u zgradu izbaci mi neke errore, koje ne mogu da skontam...
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(544) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(638) : error 001: expected token: ")", but found "{"
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(643) : error 017: undefined symbol "pInt"
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(646) : error 001: expected token: ")", but found "{"
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(651) : error 017: undefined symbol "pInt"
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(653) : warning 217: loose indentation
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(653) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(656) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(656) : error 004: function "S@@_OnRconLoginAttempt" is not implemented
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(658) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(661) : warning 225: unreachable code
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(661) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(661) : error 004: function "OnPlayerUpdate" is not implemented
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(663) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(666) : warning 225: unreachable code
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(666) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(666) : error 004: function "S@@_OnPlayerStreamIn" is not implemented
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(668) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(671) : warning 225: unreachable code
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(671) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(671) : error 004: function "S@@_OnPlayerStreamOut" is not implemented
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(673) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(676) : warning 225: unreachable code
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(676) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(676) : error 004: function "S@@_OnVehicleStreamIn" is not implemented
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(678) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(681) : warning 225: unreachable code
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(681) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(681) : error 004: function "S@@_OnVehicleStreamOut" is not implemented
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(683) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(686) : warning 225: unreachable code
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(686) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(686) : error 004: function "S@@_OnDialogResponse" is not implemented
C:\Documents and Settings\Isko\Desktop\Dillmore RP\gamemodes\dr.pwn(688) : error 017: undefined symbol "dialogid"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Dio skripte:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys == KEY_ACTION )
{
if(IsPlayerInRangeOfPoint(playerid,3.0,627.2355,-571.8029,17.9145) //Ulaz
{
GameTextForPlayer(playerid, "~w~Uprava Teksaskih rendzera", 5000, 4);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,1550.8385,-1685.6138,1723.1050);
SetPlayerFacingAngle(playerid, 7.4768);
PlayerInfo[playerid][pInt] = 6;
}
else if(IsPlayerInRangeOfPoint(playerid,3.0,1550.8385,-1685.6138,1723.1050) //Izlaz
{
GameTextForPlayer(playerid, "~w~Dillimore", 5000, 4);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,627.2355,-571.8029,17.9145);
SetPlayerFacingAngle(playerid, 7.4768);
PlayerInfo[playerid][pInt] = 0;
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):/


Village's Roleplay USKORO...

Village's Roleplay USKORO...

poravnaj linije, defini to sto treba, i to su ti valjda svi errori...

Evo enum...
enum pInfo
{
    pPass,
    pNovac,
    pAdmin,
    pGodine,
    pInt,
    pZemlja,
    pPosao
}


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Citat: David (Sabljak) poslato Decembar 14, 2012, 11:04:31 PRE PODNE
Reko sam mu ja na serveru uzivo sad

if(IsPlayerInRangeOfPoint(playerid,3.0,627.2355,-571.8029,17.9145)) //Ulaz

Nije dobro zagrade zatvorio
Opet isti errori :S


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Citat: David (Sabljak) poslato Decembar 14, 2012, 11:23:17 PRE PODNE
Evo radi

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys == KEY_ACTION )
{
if(IsPlayerInRangeOfPoint(playerid,3.0,627.2355,-571.8029,17.9145)) //Ulaz
{
GameTextForPlayer(playerid, "~w~Uprava Teksaskih rendzera", 5000, 4);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,1550.8385,-1685.6138,1723.1050);
SetPlayerFacingAngle(playerid, 7.4768);
PlayerInfo[playerid][pInt] = 6;
}
else if(IsPlayerInRangeOfPoint(playerid,3.0,1550.8385,-1685.6138,1723.1050)) //Izlaz
{
GameTextForPlayer(playerid, "~w~Dillimore", 5000, 4);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,627.2355,-571.8029,17.9145);
SetPlayerFacingAngle(playerid, 7.4768);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}

Hvala puno ! <3 :D
Moze LOCK !
Poslednja Izmena: Decembar 14, 2012, 11:38:56 PRE PODNE od Ismail_Hadzic


Village's Roleplay USKORO...

Village's Roleplay USKORO...