SA-MP Forums Archive
Errors/Warnings help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors/Warnings help (/showthread.php?tid=188193)



Errors/Warnings help - marinov - 06.11.2010

Код:
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1053) : warning 217: loose indentation
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1061) : warning 217: loose indentation
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1425) : error 017: undefined symbol "string"
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1425) : error 017: undefined symbol "string"
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1425) : error 029: invalid expression, assumed zero
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1425) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Lines:

Код:
1053   	return 0;
1061  	return 0;
1425	        format(string, sizeof(string), "| Slot %i: %s (Ammo: %i)", slot, gunname, vehTrunkAmmo[result][slot]);
What's wrong ?


Re: Errors/Warnings help - TouR - 06.11.2010

Код:
new string[124];
at line 1424


Re: Errors/Warnings help - marinov - 06.11.2010

ok, can you explain to me what the [124] means ?

PS: New Errors now:

Код:
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1054) : warning 217: loose indentation
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1062) : warning 217: loose indentation
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1441) : error 017: undefined symbol "sendername"
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1441) : error 017: undefined symbol "sendername"
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1441) : error 029: invalid expression, assumed zero
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1441) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Lines
Код:
1054 	return 0;
1062 	return 0;
1441 	GetPlayerName(playerid, sendername, sizeof(sendername));



Re: Errors/Warnings help - TouR - 06.11.2010

man these are the basics... Everything is here: https://sampwiki.blast.hk/wiki/Scripting_Basics
search for the arrays


Re: Errors/Warnings help - marinov - 06.11.2010

It's because I'm from Brazil, my english is not very good