SA-MP Forums Archive
Help Me Please! - 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)
+--- Thread: Help Me Please! (/showthread.php?tid=385946)



Help Me Please! - Mr.Ramadhann - 18.10.2012

Anyone Help Me!

Rep+ If this Problem is Resolved

C:\Documents and Settings\RIZ\Desktop\ZRP\gamemodes\ZRP.pwn(4180) : error 017: undefined symbol "PlayerToyInfo"
C:\Documents and Settings\RIZ\Desktop\ZRP\gamemodes\ZRP.pwn(4180) : warning 215: expression has no effect
C:\Documents and Settings\RIZ\Desktop\ZRP\gamemodes\ZRP.pwn(4180) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\RIZ\Desktop\ZRP\gamemodes\ZRP.pwn(4180) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RIZ\Desktop\ZRP\gamemodes\ZRP.pwn(4180) : fatal error 107: too many error messages on one line

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


4 Errors.



Re: Help Me Please! - Jarnu - 18.10.2012

Код:
new PlayerToyInfo[MAX_PLAYERS];
put it on top and next time give MORE informations also get 50+ posts first to give reputation points.


Re: Help Me Please! - Mr.Ramadhann - 18.10.2012

I Put It On top And Then I Compile Again ...

C:\Documents and Settings\RIZ\Desktop\ZRP\gamemodes\ZRP.pwn(4181) : warning 215: expression has no effect
C:\Documents and Settings\RIZ\Desktop\ZRP Newsuck\gamemodes\ZRP.pwn(4181) : error 001: expected token: ";", but found "["
C:\Documents and Settings\RIZ\Desktop\ZRP Newsuck\gamemodes\ZRP.pwn(4181) : error 029: invalid expression, assumed zero
C:\Documents and Settings\RIZ\Desktop\ZRP Newsuck\gamemodes\ZRP.pwn(4181) : warning 215: expression has no effect
C:\Documents and Settings\RIZ\Desktop\ZRP Newsuck\gamemodes\ZRP.pwn(4181) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\RIZ\Desktop\ZRP Newsuck\gamemodes\ZRP.pwn(4181) : fatal error 107: too many error messages on one line

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


4 Errors.


Re: Help Me Please! - Roel - 18.10.2012

show line 4181....


Re: Help Me Please! - Mr.Ramadhann - 18.10.2012

line 4181

Код:
    PlayerToyInfo[giveplayerid][slot][ptModelID] = object;
I Used zGaming Roleplay GameMode , Then I Put CMD:GiveObject From My Old GameMode


Re: Help Me Please! - Roel - 18.10.2012

Was this code already in your gamemode, of did you copy this code from another gamemode for example NGRP...


Re: Help Me Please! - Mr.Ramadhann - 18.10.2012

I copy That Code From NGRP Gamemode


Re: Help Me Please! - Roel - 18.10.2012

Yes, you should not do that.
First of all, NRGP is not a very simple script for beginners, secondly, you should never copy code from another script to your own script without editing it.
What you can do is open the NGRP and CTRL+F and search for PlayerToyInfo
And copy everything what belongs to it, to your gamemode at the right place, but you need to have medium scripting knowlegde, else it won't work, so it's your choise.


Re: Help Me Please! - Mr.Ramadhann - 18.10.2012

Okay .. But Is there GiveObject like That in Other Gamemode? Especially zGaming Gamemode
I Really Need It!


Re: Help Me Please! - gtakillerIV - 18.10.2012

What I like to do is take the idea from another script and see how it works and create it for my script so it fits just RIGHT

Or take the idea and add more stuff to make it fun..etc.