Help! Error
#1

error 028: invalid subscript (not an array or too many subscripts): "SendClientMessage"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
: error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

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

SendClientMessage[playerid], 0x33CCFFAA, string); Line
Reply
#2

Hmm ?
pawn Код:
SendClientMessage[playerid], 0x33CCFFAA, string);
is this stock or somthing? if it wasnt then replace it with this:
pawn Код:
SendClientMessage(playerid, 0x33CCFFAA, string);
Reply
#3

: error 017: undefined symbol "Pokana"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Pokana[playerid] = 1;
And Now



4 Errors.
Reply
#4

I cant fix it to you untill you show us your code ..
Reply
#5

Add this at the top of your script but below your defines:

pawn Код:
new Pokana[MAX_PLAYERS];
Reply
#6

error 017: undefined symbol "GetPlayerNameEx"
warning 202: number of arguments does not match definition
warning 217: loose indentation
warning 235: public function lacks forward declaration (symbol "NameTimer")
error 017: undefined symbol "GetPointDistanceToPointExMorph"

And Now

GetPlayerNameEx(playerid, sendername, sizeof(sendername));
Reply
#7

DEFINE THEM! Don't only paste parts to your script, you need to define them first, otherwise you'll get errors/warning.
Let's start;
Use GetPlayerName instead of GetPlayerNameEx, or use GetPlayerNameEx(playerid); by adding the following stock
pawn Код:
// At the bottom
stock GetPlayerNameEx(playerid) // <-- This stock for GetPlayerNameEx(playerid);
{
    new nname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nname, sizeof(nname));
    return nname;
}
Also
pawn Код:
// At the top, under includes/define
forward NameTimer(/* parameters here, if there are */)

// At the bottom
stock Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
    new Float:x, Float:y, Float:z;
    x = x1-x2;
    y = y1-y2;
    z = z1-z2;
    return floatsqroot(x*x+y*y+z*z);
}
Reply
#8

error 001: expected token: ";", but found "-identifier-"
error 001: expected token: ",", but found ";"


1 - forward zatvori18();
2 - GetPlayerNameEx(playerid, sendername, sizeof(sendername);
Reply
#9

Read again what I wrote above.
pawn Код:
/* Usage: */
// 1st way;
new sendername[ MAX_PLAYER_NAME ];
GetPlayerName(playerid, sendername, sizeof(sendername));
// 2nd way;
GetPlayerNameEx(playerid);
Choose only one way to use.

// --

Show 2 lines before, the error's line and 2 lines after from the forward zatvori18();
Can you also show me the callback from that (public .. etc )?
Reply
#10

new sendername[ MAX_PLAYER_NAME ];

who to put this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)