SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Little coding questions - For general minor queries 5 (https://forum.sa-mp.com/showthread.php?t=30938)

Backwardsman97 16/05/2009 08:25 PM

Re: Little coding questions - For general minor queries 5
 
Yeah, lol, I was just about to edit it out. I thought strfind just returned like 0 if the string was found. Not the occurance. I just read about it on the wiki though.

creepymoto 21/05/2009 06:46 PM

Re: Little coding questions - For general minor queries 5
 
Lol,Im really a beginner here....I know how to edit...but adding command is kinda harder.
When i add between like that /Nrg and /god command then i get bunch of errors...so is that wrong ?

Remcconen 22/05/2009 01:19 PM

Re: Little coding questions - For general minor queries 5
 
I need a simple script which can check if you are in an ambulance. I can't find a function to check the modelid, only vehicle id.

BioFreeze 22/05/2009 01:32 PM

Re: Little coding questions - For general minor queries 5
 
Quote:

Originally Posted by Remcconen
I need a simple script which can check if you are in an ambulance. I can't find a function to check the modelid, only vehicle id.

Try to search again.

Remcconen 22/05/2009 01:44 PM

Re: Little coding questions - For general minor queries 5
 
Quote:

Originally Posted by Biofreeze
Quote:

Originally Posted by Remcconen
I need a simple script which can check if you are in an ambulance. I can't find a function to check the modelid, only vehicle id.

Try to search again.

Where? Or give me a topiclink.

Backwardsman97 22/05/2009 11:20 PM

Re: Little coding questions - For general minor queries 5
 
pawn Code:
stock IsVehicleAmbulance(vehicleid)
{
   if(GetVehicleModel(vehicleid)==416) return 1;
   return 0;
}

mini-d 24/05/2009 03:38 AM

Re: Little coding questions - For general minor queries 5
 
anyone got the Define for State eg onplayerstate

Ignas1337 24/05/2009 03:40 AM

Re: Little coding questions - For general minor queries 5
 
aren't there states defined in a_samp?

mini-d 24/05/2009 03:45 AM

Re: Little coding questions - For general minor queries 5
 
Im meaning for the error

Code:

D:\Dean's Documents\samp02Xserver.win32\gamemodes\omgserver.pwn(2439) : error 017: undefined symbol "State"

GTA_Rules 27/05/2009 10:59 AM

Re: Little coding questions - For general minor queries 5
 
Show me your code please.


All times are GMT. The time now is 07:02 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.