first script
#1

this is my first script for my gm


most of the errors are undefined symbol "playerid"


C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(369) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(370) : error 021: symbol already defined: "strtok"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(385) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1065) : warning 225: unreachable code
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1065) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1066) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1067) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(106 : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1069) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1070) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1071) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1072) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1073) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1074) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1075) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1076) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1077) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(107 : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1082) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1083) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1084) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1086) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1106) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1117) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(111 : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1120) : error 017: undefined symbol "playerid"
C:\DOCUME~1\ADMINI~1\Desktop\COPYOF~2.PWN(1122) : error 017: undefined symbol "playerid"

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


26 Errors.


can enyone tell me what to do?

i tryed to add seifadmin v2 to grandlarc GM [come in samp 0.3a gamemodes folder]

if ned lines,whole,script i will upload. but i whona know whay this hapening

sry for bad eng
Reply
#2

did you define playerid?
Reply
#3

ask in scripting discussion or server support, this doesnt really have anything with 0.3 to do..
Reply
#4

Quote:
Originally Posted by [LRP
Sayaron ]
ask in scripting discussion or server support, this doesnt really have anything with 0.3 to do..
What the hell? Yes it does. And this is the scripting discussion.
Reply
#5

This isn't 0.3a specific, but since it's release I honestly don't see the purpose of having 2 seperate threads.


I'm going to assume you've copied yourself a command and placed it into the wrong section.

Pawn does have callbacks each shooting off based on their pre-determined purpose. Ex: OnPlayerText will run whatever script is located in it whenever a player says something. So you have to place your command(s) into 'OnPlayerCommandText'

example:
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
//Your codes go in after this bracket
  if(!strcmp(cmdtext[1],"goto ",true,5))
  {
    new Float:x,Float:y,Float:z;
    GetPlayerPos(strval(cmdtext[6]),x,y,z);
    SetPlayerPos(playerid,x,y,z);
    return 1;
  }
  //Codes go before return
  return 0;
}
Reply
#6

thx ithelpedme alot
Reply
#7

Quote:
Originally Posted by retart441
did you define playerid?
He is using playerid in functions which doesn't support playerid. Eg. OnVehicleDeath
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)