SA-MP Forums Archive
Pawno Errors.. - 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: Pawno Errors.. (/showthread.php?tid=529073)



Pawno Errors.. - Ritzy2K - 31.07.2014

Hi Guys.. I need a lil Pawo Help again.. :3 Getting Few Errors..

So This is What When I try to Compile..-
Quote:

G:\gamemodes\cnr.pwn(28531) : error 017: undefined symbol "SPECIAL_ACTION_PISSING"
G:\gamemodes\cnr.pwn(28592) : error 017: undefined symbol "SPECIAL_ACTION_PISSING"
G:\gamemodes\cnr.pwn(38077) : error 025: function heading differs from prototype
G:\gamemodes\cnr.pwn(3807 : error 021: symbol already defined: "ReturnUser"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Okay,so Lets start..at Line 28531 and Line 28592 The pissing one..

Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
Now Line 28592

Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
Both are Same..But i have No idea.. how to Define.. it

Lets Move Further.. At Line 38077

Код:
stock ReturnUser(playerid,  text[])
The Problem is Function heading diff from Prototype..

Now Line 38078..

Код:
{
Its just that :3 Help me pls? Will be appreciated with +REPS


Re: Pawno Errors.. - Clad - 31.07.2014

For the Special actions, You don't have to define them, They are already known, Show me the full code of that.
And about symbole already defined means you did already define that, And you can remove it


Re: Pawno Errors.. - arlindi - 31.07.2014

Ok i know you are using Pink panther cops and robbers. u must change the pawno and will work.


Re: Pawno Errors.. - Ritzy2K - 31.07.2014

Oh ty clad.. N yes m using pink panther.. Gamemode.. Wut u mean by 'change the pawno'


Re: Pawno Errors.. - Stinged - 31.07.2014

SPECIAL_ACTION_PISSING is not defined by default - Quoting the wiki

Add this to the top:
pawn Код:
#define SPECIAL_ACTION_PISSING 68



Re: Pawno Errors.. - arlindi - 31.07.2014

Hmm download new pawno.


Re : Re: Pawno Errors.. - Clad - 31.07.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
SPECIAL_ACTION_PISSING is not defined by default - Quoting the wiki

Add this to the top:
pawn Код:
#define SPECIAL_ACTION_PISSING 68
I use the same thing in my server without defining it


Re: Pawno Errors.. - Ritzy2K - 31.07.2014

Okay... The special action problem is solved.. but still.. if i remove the 'return user' thing which is already defined.. makes pawno crash.. help me :/ line 38077 and line 38078.now only 2 errors.. the code is - for line 38077 to line 38085..
Quote:

// ReturnUser (By ******)
stock ReturnUser(playerid, text[])
{
new pos = 0,string[256];
while (text[pos] < 0x21) // Strip out leading spaces
{
if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
pos++;
}

Help.. -_-


Re: Re : Re: Pawno Errors.. - Stinged - 31.07.2014

Quote:
Originally Posted by Clad
Посмотреть сообщение
I use the same thing in my server without defining it
Maybe it was defined in an include?

The warning he's getting clearly says it's not defined.
And https://sampwiki.blast.hk/wiki/SpecialActions






Re: Pawno Errors.. - Ritzy2K - 31.07.2014

Hmmm..Stinged.. can u solve my last prob too please?