Pawno Errors..
#1

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
Reply
#2

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
Reply
#3

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

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

SPECIAL_ACTION_PISSING is not defined by default - Quoting the wiki

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

Hmm download new pawno.
Reply
#7

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
Reply
#8

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.. -_-
Reply
#9

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



Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)