04.07.2009, 16:22
Hi I was searching around trying to find a code that would allow me to place reflectve cones around with the createobject /cone cmd
I found a code someone posted and I've tried it. But I keep getting error messages. Also it's not setup for a faction only I don't think. If someone could help me out with that...
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(490 : warning 219: local variable "X" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(490 : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(490 : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5359) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5359) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5359) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5371) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5371) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5371) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : error 017: undefined symbol "bCreateInfo"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : error 017: undefined symbol "Model"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : fatal error 107: too many error messages on one line
I'm also just testing it out on the gf script. I'm just trying to learn how to script by vieing other samples....
I found a code someone posted and I've tried it. But I keep getting error messages. Also it's not setup for a faction only I don't think. If someone could help me out with that...
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(490 : warning 219: local variable "X" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(490 : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(490 : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5359) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5359) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5359) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5371) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5371) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(5371) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : error 017: undefined symbol "bCreateInfo"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : error 017: undefined symbol "Model"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\gf.pwn(6631) : fatal error 107: too many error messages on one line
Quote:
{ #define MAX_CONES (25) new Cone[MAX_CONES]; new ConeCounter; } if(!strcmp(cmdtext, "/cone", true)) { if(ConeCounter == MAX_CONES) return SendClientMessage(playerid, COLOR_RED, "Cone Limit reached"); new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); Cone[ConeCounter++] = CreateObject(1237, X, Y, Z, 0.0, 0.0, A); SetPlayerPos(playerid, X+3, Y+3, Z+3); return SendClientMessage(playerid, COLOR_GREEN, "Reflective Cone Successfully Deployed"); } if(!strcmp(cmdtext, "/removecones", true)) { for(new i = 0; i <= ConeCounter; i++) DestroyObject(Cone[i]); ConeCounter = 0; return SendClientMessage(playerid, COLOR_GREEN, "Cones have been picked up."); } |